package com.example.kangjujiaofei.contants;


public enum ResponseInfo {

	SUCCESS(0, "success"),
	NOTICE_SUCCESS(1, "notice success"),
	EXCEPTION(-1, "很抱歉，系统繁忙，请稍后再试"),
	ERROR(-2,"错误提示"),
	FAIL(-3, "操作失败"),
	
	PARAM_MISSING(1000,"参数缺失"),
	SIGN_MISSING(1002,"签名错误"),
	ILLEGAL_PARAM(1001,"参数非法"),
	AUTHENTICATION_FAILURE(1004,"认证失败"), 
	INVALID_PARAM(1001,"非法参数"), 
	REQUEST_TIMEOUT(1010,"请求超时"), 
	API_KEY_MISSING(1011,"接入key缺失"),
	SIGN_MISMATCHING(1012,"签名不匹配"),
	NOT_FOUND(1404,"地址不存在"),

	BUSI(1500,""),
	HTTP_URL_ERROR(1501,"HTTP 远程调用 URL 错误"),
	HTTP_IO_ERROR(1502,"HTTP 远程调用 IO 异常"),
	HTTP_BEFORE_ERROR(1503,"HTTP 远程调用 预处理 异常"),
	HTTP_ERROR(1504,"HTTP 远程调用异常"),

	IS_EXIST(1015,"该记录已存在"),
	
	AUTH_SUCCESS(0 ,"认证成功"),
	AUTH_FAIL(-1 ,"认证失败"),
	AUTH_ACCOUNT_NOT_EXIT(-1 ,"账户不存在"),
	AUTH_PASSWORD_WRONG(-3 ,"密码错误"),

	VALIDATE_MSG(-1,"验证码校验错误，请重新输入"),
	VALIDATE_LOST(-1,"验证码已经失效，请重新发送"),
	MESSAGE_IS_NULL(-1,"验证码不能为空，请先输入验证码"),
	
	FILE_UPLOAD_FAIL(101,"文件上传失败"),
	MATCH_FAIL(101,"匹配失败"),


	BANK_ACCOUNT_CREATE_FAIL(120,"银行卡创建失败"),
	BANK_ACCOUNT_CREATE_EXIT(121,"银行卡已存在"),

	LOGIN_ERROR(10,"登录异常"),
	OLD_PASSWORD_ERROR(11,"旧密码错误"),
	ACCOUNT_EXIST(12,"账号已存在"),
	EMP_NO_EXIST(16,"员工号已存在"),
	ACCOUNT_NOT_EXIST(13,"账号不存在"),
	ACCOUNT_DISABLE(14,"账号已停用"),
	PASSWORD_ERROR(15,"用户名或密码错误"),
	DEPT_EXIST_EMP(17,"部门上有员工，不能删除"),
	ROLE_EXIST_EMP(18,"该角色上有员工，不能删除"),
	LOOK_DOC_ERROR(19,"文档预览失败"),
	DEPT_CODE_EXIST(20,"部门编号已存在"),
	DEPT_NAME_EXIST(21,"部门名称已存在"),
	REGISTER_ERROR(22,"注册失败"),

	SIGN_NOT_MATCH(1111, "签名不匹配"),
    
    TASK_NOT_EXIST(25,"任务不存在"),
	PROJECT_ID_NOT_EXIST(26,"贴息编号不存在"),
	PROJECT_ID_RELATED(27,"贴息编号已经被关联"),
	SAVE_VEHICLE_FAIL(28,"保存车型对应关系失败"),

	PAY_ERROR(2001, "支付异常")
	;

	public final int code;

	public final String msg;

	private ResponseInfo(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return code;
	}
	
	public String getMsg(){
		return msg;
	}
}
